<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
Integer port = request.getServerPort();
String basePath = "";
if(port==80){
	basePath = request.getScheme()+"://"+request.getServerName()+path+"/";
}else{
	basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
}
%>
<c:set var="ctx" value="<%=basePath%>"/>
<script type="text/javascript" src="${ctx}resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
 var APP_PATH = '${ctx}';
</script>